package com.zut.service;


import com.zut.entity.Teacher;

import java.util.List;
import java.util.Map;

/**
 * 教师业务接口
 */
public interface TeacherService {
    Teacher login(String tid, String password);

    /**
     * 根据班级编号查询该班却少的教师
     * @param classId
     * @return
     */
    List<Map<String, Object>> findTeachers(String classId);

    void addTeacher(Teacher teacher);

    /**
     * 查询所有教师
     * @return
     */
    List<Map<String, Object>> findAllTeachers();

    List<Map<String, Object>> findTeachersLikeName(String tname);

    List<Map<String, Object>> findTeachersByCname(String cname);

    void updateTeachCourse(String tid, String cid);

    boolean deleteTeacher(String tid);

    void updateTeacherPassword(String id, String newPwd);

    void updateTeacherPhoneNum(String id, String newPhoneNum);
}
